<?
$this->dbLoad("Slideshow");
$slideshow = $this->dbSlideshow->load();

?>

<div class="slide left">
	<? if(count($slideshow["left"])): ?>
	<ul>
		<? foreach($slideshow["left"] as $slide): ?>
		<li>
			<a href="<?= $slide["link"]; ?>"><img src="/image/slideshow/<?= $slide["image"]; ?>" alt="" width="500" height="300" /></a>
			<? if($slide["title"]): ?><h1><?= $slide["title"]; ?></h1><? endif; ?>
			<? if($slide["description"]): ?><p><?= $slide["description"]; ?></p><? endif; ?>
		</li>
		<? endforeach; ?>
	</ul>
	<? endif; ?>
</div>
<div class="slide right">
	<? if(count($slideshow["right"])): ?>
	<ul>
		<? foreach($slideshow["right"] as $slide): ?>
		<li>
			<a href="<?= $slide["link"]; ?>"><img src="/image/slideshow/<?= $slide["image"]; ?>" alt="" width="500" height="300" /></a>
			<? if($slide["title"]): ?><h1><?= $slide["title"]; ?></h1><? endif; ?>
			<? if($slide["description"]): ?><p><?= $slide["description"]; ?></p><? endif; ?>
		</li>
		<? endforeach; ?>
	</ul>
	<? endif; ?>
</div>